// 以前 token 令牌，如果存到了本地，每一次都写这么长，太麻烦
// localStorage.setItem(键， 值)
// localStorage.getItem(键)
// localStorage.removeItem(键)
const KEY = 'my-token-vant-mobile-rent-house'

// 存储token
export const setToken = (data) => {
  localStorage.setItem(KEY, data)
}

// 获取token
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 清除token
export const removeToken = () => {
  localStorage.removeItem(KEY)
}
